package goldeneagle.com.admin.dao;

import java.util.List;

import goldeneagle.com.entity.Product;
import goldeneagle.com.entity.User;

public interface AdminManagerDao {
	//用户管理
	public List adminSelectUserList(int currentPage, int size);//分页实现用户列表查询
	public boolean adminDeleteUser(int id);//根据id删除用户
	public boolean adminAddUser(User user);
	public boolean adminUpdateUser(User user);
	public User findUserById(int id);
	//商品管理
	public List<Product> adminSelectProductList(int currentPage,int size);
	public boolean adminDeleteProduct(Product product);
	public boolean adminAddProduct(Product product);
	public boolean adminUpdateProduct(Product product);
	public Product findProductById(int id);
	public long totalCount(String name);//数据总数
}
